﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace MC.RideEventMVC.Models
{
    public class WayModel
    {
        public int Id { get; set; }
        public string CodeWay { get; set; }

        public int DriverId { get; set; }
        public int EventId { get; set; }
        public int VehiculeId { get; set; }

        [Required(ErrorMessage = "*")]
        [Display(Name = "Heure rendez-vous")]
        public string MeetingHour { get; set; }

        [Required(ErrorMessage = "*")]
        [Display(Name = "Lieu rendez-vous")]
        public string  MeetingPlace { get; set; }

        [Required(ErrorMessage = "*")]
        [Display(Name = "Places disponibles")]
        public int NumberPlaces { get; set; }
    }
}